DeTab -- replace tab characters with spaces

Syntax      DeTab [file] <file >output

Description DeTab replaces tab characters (ASCII 9) in the input file with
            runs of spaces.  The input file may be specified on the command
            line and must be of type TXT or SRC. DeTab will alternately accept
            standard input as the input file.  The converted file is sent to
            standard output.

            The size of each tab field is determined by the file's language
            stamp.  DeTab will use the tab definition line found in the SysTabs
            file corresponding to the language number of the file.  If standard
            input is used as the source file, a standard tab line with tab
            positions every fourth character position will be used.


Input       Standard input is read if no file is specified on the command
            line.

Output      File characters are written to standard output.

Diagnostics Errors are written to diagnostic output (standard error output).

Status      DeTab may return the following status codes:

            0   No errors
            1   Bad filetype for input source file
            2   Unable to open file
            -1  User abort

Options     none.

Examples    Change Derez.out Rez
            DeTab Derez.out >mystuff.rez

            First, the file "Derez.out" has it's language stamp set to "Rez".
            Next, DeTab is used to convert tab characters to runs of spaces,
            using the tab definition line for the Rez language to determine the
            tab stops (from the 4/SysTabs file).


            DeRez myfile.stuff | DeTab >myfile.rez

            The resource decompiler is used to translate the resource fork of
            the file "myfile.stuff", pipelining it's output to be the input to
            the DeTab tool.  The final result of the processing will be placed
            in the file "myfile.rez" as editable, Rez source code.
